<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="shortcut icon" href="<!--{eval echo register_static('img/touch-icon-57x57.png');}-->">

    <title>粉粉管理系统</title>

    <!-- Bootstrap core CSS -->
    <link href="<!--{eval echo register_static('css/bootstrap.min.css');}-->" rel="stylesheet">
    <link href="<!--{eval echo register_static('css/bootstrap-reset.css');}-->" rel="stylesheet">

    <!--Animation css-->
    <link href="<!--{eval echo register_static('css/animate.css');}-->" rel="stylesheet">

    <!--Icon-fonts css-->
    <link href="<!--{eval echo register_static('assets/font-awesome/css/font-awesome.css');}-->" rel="stylesheet" />
    <link href="<!--{eval echo register_static('assets/ionicon/css/ionicons.min.css');}-->" rel="stylesheet" />

    <link href="<!--{eval echo register_static('assets/sweet-alert/sweet-alert.min.css');}-->" rel="stylesheet">

    <!-- Plugins css -->
    <link href="<!--{eval echo register_static('assets/modal-effect/css/component.css');}-->" rel="stylesheet">

    <!-- DataTables -->
    <link rel="stylesheet" href="<!--{eval echo register_static('assets/datatables/jquery.dataTables.min.css" rel="stylesheet');}-->" />

    <!-- Custom styles for this template -->
    <link href="<!--{eval echo register_static('css/style.css');}-->" rel="stylesheet">
    <link href="<!--{eval echo register_static('css/helper.css');}-->" rel="stylesheet">

    <!-- My styles for this template -->
    <link href="<!--{eval echo register_static('css/common.css');}-->" rel="stylesheet">

</head>

<body>

<!-- Aside Start-->
<!--{template admin_v2/leftside}-->
<!-- Aside Ends-->


<!--Main Content Start -->
<section class="content">

    <!-- Header -->
    <!--{template admin_v2/header}-->
    <!-- Header Ends -->


    <!-- Page Content Start -->
    <!-- ================== -->

    <div class="wraper container-fluid diary-topics">

        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">举报投诉列表</h3>
                    </div>
                    <div class="panel-body">

                        <!--search-->
                        <div class="extrabottom" style="margin-bottom: 10px">
                            <form class="form-inline" role="form">
                                <div class="form-group">
                                    <select class="form-control myChoose" name="reasonType" id="reasonType">
                                        <option value="0">举报类型(全部)</option>
                                        <option value="1">垃圾广告</option>
                                        <option value="2">虚假中奖</option>
                                        <option value="3">淫秽色情</option>
                                        <option value="4">敏感信息</option>
                                        <option value="5">泄露隐私</option>
                                        <option value="6">人身攻击</option>
                                        <option value="7">骚扰他人</option>
                                        <option value="8">冒充他人</option>
                                        <option value="9">不实信息</option>
                                        <option value="10">内容抄袭</option>
                                        <option value="11">欺诈骗钱</option>
                                        <option value="12">其他</option>
                                    </select>
                                </div>
                                <input type="hidden" name="ac" value="member" />
                                <input type="hidden" name="op" value="searchList"/>
                                <input type="submit" value="点击查找" class="btn btn-success"  id="search"/>
                            </form>


                        </div>

                        <div class="row">
                            <div class="col-md-12 col-sm-12 col-xs-12">
                                <table id="datatable" class="table table-striped table-bordered">
                                    <thead>
                                    <tr>
                                        <th style="width: 5%;">id</th>
                                        <th style="width: 5%;">举报类型</th>
                                        <th style="width: 9%;">被举报者</th>
                                        <th style="width: 9%;">举报者</th>
                                        <th style="width: 10%;">原因</th>
                                        <th style="width: 7%;">举报内容类型</th>
                                        <th style="width: 25%;">举报内容</th>
                                        <th style="width: 10%;">时间</th>
                                        <th style="width: 5%;">处理状态</th>
                                        <th style="width: 15%;">操作</th>
                                    </tr>
                                    </thead>

                                    <tbody>
                                    <!--{loop $list $value}-->
                                    <tr>
                                        <td>$value['id']</td>
                                        <td>
                                            <label class="label label-success">
                                                {if $value['reasonType']==1}
                                                垃圾广告
                                                {elseif $value['reasonType']==2}
                                                虚假中奖
                                                {elseif $value['reasonType']==3}
                                                淫秽色情
                                                {elseif $value['reasonType']==4}
                                                敏感信息
                                                {elseif $value['reasonType']==5}
                                                泄露隐私
                                                {elseif $value['reasonType']==6}
                                                人身攻击
                                                {elseif $value['reasonType']==7}
                                                骚扰他人
                                                {elseif $value['reasonType']==8}
                                                冒充他人
                                                {elseif $value['reasonType']==9}
                                                不实信息
                                                {elseif $value['reasonType']==10}
                                                内容抄袭
                                                {elseif $value['reasonType']==11}
                                                欺诈骗钱
                                                {elseif $value['reasonType']==12}
                                                其他
                                                {/if}
                                            </label>
                                        </td>
                                        <td><a target="_blank" href="/admin.php?ac=admin&do=accountOperation&uid=$value['ruid']"><span>$value['rnickname']<br/>($value['ruid'])</span></a></td>
                                        <td>
                                            <a target="_blank" href="/admin.php?ac=admin&do=accountOperation&uid=$value['uid']">$value['nickname']<br/>($value['uid'])</a>
                                        </td>
                                        <td style="word-break: break-all;width: 15%"><span style="color: #df8505">
                                            {if $value['reasonType']==1}
                                                垃圾广告{if $value['reasonRemark']!=''}(说明：$value['reasonRemark']){/if}
                                            {elseif $value['reasonType']==2}
                                                虚假中奖{if $value['reasonRemark']!=''}(说明：$value['reasonRemark']){/if}
                                            {elseif $value['reasonType']==3}
                                                淫秽色情{if $value['reasonRemark']!=''}(说明：$value['reasonRemark']){/if}
                                            {elseif $value['reasonType']==4}
                                                敏感信息{if $value['reasonRemark']!=''}(说明：$value['reasonRemark']){/if}
                                            {elseif $value['reasonType']==5}
                                                泄露隐私{if $value['reasonRemark']!=''}(说明：$value['reasonRemark']){/if}
                                            {elseif $value['reasonType']==6}
                                                人身攻击{if $value['reasonRemark']!=''}(说明：$value['reasonRemark']){/if}
                                            {elseif $value['reasonType']==7}
                                                骚扰他人{if $value['reasonRemark']!=''}(说明：$value['reasonRemark']){/if}
                                            {elseif $value['reasonType']==8}
                                                冒充他人{if $value['reasonRemark']!=''}(说明：$value['reasonRemark']){/if}
                                            {elseif $value['reasonType']==9}
                                                不实信息{if $value['reasonRemark']!=''}(说明：$value['reasonRemark']){/if}
                                            {elseif $value['reasonType']==10}
                                                内容抄袭{if $value['reasonRemark']!=''}(说明：$value['reasonRemark']){/if}
                                            {elseif $value['reasonType']==11}
                                                欺诈骗钱{if $value['reasonRemark']!=''}(说明：$value['reasonRemark']){/if}
                                            {elseif $value['reasonType']==12}
                                                其他{if $value['reasonRemark']!=''}(说明：$value['reasonRemark']){/if}
                                            {/if}

                                        </span></td>
                                        <td>
                                            <label class="label label-success">
                                                {if $value['content']['diary']}
                                                点滴举报
                                                {elseif $value['content']['anonymous']}
                                                匿名内容举报
                                                {elseif $value['content']['diaryComment']}
                                                点滴评论内容举报
                                                {elseif $value['content']['user']}
                                                用户举报
                                                {elseif $value['content']['group']}
                                                圈子话题举报
                                                {elseif $value['content']['groupComment']}
                                                圈子话题评论举报
                                                {elseif $value['content']['anonymousComment']}
                                                匿名评论举报
                                                {elseif $value['content']['article']}
                                                文章举报
                                                {elseif $value['content']['groupInfo']}
                                                圈子举报
                                                {else}
                                                私信举报
                                                {/if}
                                            </label>
                                        </td>
                                        <td><span style="color: #8a1f11">
                                            <!--{if $value['content']['diary']}-->
                                                <!--{if $value['action']}-->
                                                <a target="_blank" href="/admin.php?ac=diary_class&op=getDiaryDetail&bodyId=$value['content']['diary']['bodyId']&uid=$value['uid']">
                                                    <!--{eval echo biaoqing_replace($value['content']['diary']['summary'])}--><br/>
                                                <span style="color: #df8505">点滴作者uid:</span>$value['content']['diary']['authorUid']<br/>
                                                <span style="color: #df8505">点滴bodyId:</span>$value['content']['diary']['bodyId']
                                                </a>
                                                <!--{else}-->
                                                <!--{eval echo biaoqing_replace($value['content']['diary']['summary'])}--><br/>
                                                <span style="color: #df8505">点滴作者uid:</span>$value['content']['diary']['authorUid']<br/>
                                                <span style="color: #df8505">点滴bodyId:</span>$value['content']['diary']['bodyId']
                                                <!--{/if}-->
                                            <!--{elseif $value['content']['anonymous']}-->
                                                <!--{if $value['action']}-->
                                                <a target="_blank" href="/admin.php?ac=anonymous&bodyId=$value['content']['anonymous']['bodyId']">
                                                    <!--{eval echo biaoqing_replace($value['content']['anonymous']['summary'])}--><br/>
                                                    <span style="color: #df8505">匿名bodyId:</span>$value['content']['anonymous']['bodyId']
                                                </a>
                                                <!--{else}-->
                                                <!--{eval echo biaoqing_replace($value['content']['anonymous']['summary'])}--><br/>
                                                <span style="color: #df8505">匿名bodyId:</span>$value['content']['anonymous']['bodyId']
                                                <!--{/if}-->

                                            <!--{elseif $value['content']['diaryComment']}-->
                                                 <!--{if $value['action']}-->
                                                <a target="_blank" href="/admin.php?ac=diary_class&op=getDiaryDetail&bodyId=$value['content']['diaryComment']['bodyId']&uid=$value['uid']&position=$value['content']['diaryComment']['position']">
                                                    <!--{eval echo biaoqing_replace($value['content']['diaryComment']['summary'])}--><br/>
                                                    <span style="color: #df8505">被举报的评论所在楼层:</span>$value['content']['diaryComment']['position']<br/>
                                                    <span style="color: #df8505">点滴作者id:</span>$value['content']['diaryComment']['authorUid']<br/>
                                                    <span style="color: #df8505">被举报的评论在楼中楼的id:</span>$value['content']['diaryComment']['positionId']<br/>
                                                    <span style="color: #df8505">被举报的评论用户id:</span>$value['content']['diaryComment']['cUid']<br/>
                                                    <span style="color: #df8505">点滴bodyId:</span>$value['content']['diaryComment']['bodyId']
                                                </a>
                                                <!--{else}-->
                                                <!--{eval echo biaoqing_replace($value['content']['diaryComment']['summary']);}--><br/>
                                                <span style="color: #df8505">被举报的评论所在楼层:</span>$value['content']['diaryComment']['position']<br/>
                                                <span style="color: #df8505">点滴作者id:</span>$value['content']['diaryComment']['authorUid']<br/>
                                                <span style="color: #df8505">被举报的评论在楼中楼的id:</span>$value['content']['diaryComment']['positionId']<br/>
                                                <span style="color: #df8505">被举报的评论用户id:</span>$value['content']['diaryComment']['cUid']<br/>
                                                <span style="color: #df8505">点滴bodyId:</span>$value['content']['diaryComment']['bodyId']
                                                <!--{/if}-->

                                            <!--{elseif $value['content']['user']}-->
                                                <!--{if $value['action']}-->
                                                <a target="_blank" href="/admin.php?ac=admin&do=accountOperation&uid=$value['ruid']">
                                                    <span style="color: #df8505">被举报的用户id:</span>$value['ruid']
                                                </a>
                                                <!--{else}-->
                                                <span style="color: #df8505">被举报的用户id:</span>$value['ruid']
                                                <!--{/if}-->

                                            <!--{elseif $value['content']['group']}-->
                                                <!--{if $value['action']}-->
                                                <a target="_blank" href="http://ffweb.ffrj.net/group.php?ac=index&op=getTopicCommentList&tid=$value['content']['group']['tid']&uid=$value['content']['group']['authorUid']&gid=$value['content']['group']['gid']">
                                                    <!--{eval echo biaoqing_replace($value['content']['group']['summary'])}--><br/>
                                                </a>
                                                <!--{else}-->
                                                <!--{eval echo biaoqing_replace($value['content']['group']['summary'])}--><br/>
                                                <!--{/if}-->

                                            <!--{elseif $value['content']['groupInfo']}-->
                                            <!--{if $value['action']}-->
                                                <a target="_blank" href="http://ffweb.ffrj.net/group.php?ac=index&op=getTopicList&gid=$value['content']['groupInfo']['gid']">
                                                    圈子id：$value['content']['groupInfo']['gid']；<!--{eval echo biaoqing_replace($value['content']['groupInfo']['summary'])}--><br/>
                                                </a>
                                            <!--{else}-->
                                            <!--{eval echo biaoqing_replace($value['content']['groupInfo']['summary'])}--><br/>
                                            <!--{/if}-->

                                            <!--{elseif $value['content']['groupComment']}-->
                                                <!--{if $value['action']}-->
                                                <a target="_blank" href="http://ffweb.ffrj.net/group.php?ac=index&op=getTopicCommentList&tid=$value['content']['groupComment']['tid']&uid=$value['content']['groupComment']['authorUid']&gid=$value['content']['groupComment']['gid']&position=$value['content']['groupComment']['position']&positionId=$value['content']['groupComment']['positionId']">
                                                    <!--{eval echo biaoqing_replace($value['content']['groupComment']['summary'])}--><br/>
                                                </a>
                                                <!--{else}-->
                                                <!--{eval echo biaoqing_replace($value['content']['groupComment']['summary'])}--><br/>
                                                <!--{/if}-->
                                            <!--{elseif $value['content']['anonymousComment']}-->
                                                <!--{if $value['action']}-->
                                                <a target="_blank" href="/admin.php?ac=admin&do=accountOperation&uid=$value['uid']">
                                                    <!--{eval echo biaoqing_replace($value['content']['anonymousComment']['summary'])}--><br/>
                                                </a>
                                                <!--{else}-->
                                                <!--{eval echo biaoqing_replace($value['content']['anonymousComment']['summary'])}--><br/>
                                                <!--{/if}-->

                                            <!--{elseif $value['content']['article']}-->
                                                <!--{if $value['action']}-->
                                                <a target="_blank" href="/admin.php?ac=article_class&op=getArticleInfo&uid=$value['content']['article']['authorUid']&aid=$value['content']['article']['articleBodyId']">
                                                    <!--{eval echo biaoqing_replace($value['content']['article']['summary'])}--><br/>
                                                    <span style="color: #df8505">被举报的文章作者id:</span>$value['content']['article']['authorUid']<br/>
                                                    <span style="color: #df8505">被举报的文章bodyId:</span>$value['content']['article']['articleBodyId']
                                                </a>
                                                <!--{else}-->
                                                <!--{eval echo biaoqing_replace($value['content']['article']['summary'])}--><br/>
                                                <span style="color: #df8505">被举报的文章作者id:</span>$value['content']['article']['authorUid']<br/>
                                                <span style="color: #df8505">被举报的文章bodyId:</span>$value['content']['article']['articleBodyId']
                                                <!--{/if}-->
                                            <!--{elseif $value['content']['message']}-->
                                            <!--{loop $value['content'] $key=>$val}-->
                                            <!--{loop $val $k=>$v}-->
                                                <!--{if $v['type']==1}-->
                                                <span style="color: #df8505">文字</span>(说明:<!--{eval echo biaoqing_replace($v['summary'])}-->)
                                            <!--{eval  trim($v['summary']) }-->
                                            <br/>
                                                <!--{/if}-->
                                                <!--{if $v['type']==2 }-->
                                                <!--{if $v['picture'] =='gif'}-->
                                                <img src="$v['path']" class="showImg" style="max-width: 100px; max-height: 100px" /><br/>
                                                <span style="color: #df8505">图片</span>(说明:<!--{eval echo biaoqing_replace($v['summary'])}-->)<hr>
                                                <!--{else}-->
                                                <img src="http://img.fenfenriji.com$v['path']" class="showImg" style="max-width: 100px; max-height: 100px" /><br/>
                                                <span style="color: #df8505">图片</span>(说明:<!--{eval echo biaoqing_replace($v['summary'])}-->)<hr>
                                                <!--{/if}-->
                                                <!--{/if}-->
                                                <!--{if $v['type']==3}-->
                                                <audio style="border-radius:50px;width:80px;" preload="auto" controls="">
                                                    <source src="http://media.fenfenriji.com$v['path']">
                                                </audio><br/>
                                                <span style="color: #df8505">语音</span>(<!--{eval echo biaoqing_replace($v['summary'])}-->)<hr>
                                                <!--{/if}-->
                                                <!--{if $v['type']==4}-->
                                                <span style="color: #df8505">分享</span>(<!--{eval echo biaoqing_replace($v['summary'])}-->)<hr>
                                                <!--{/if}-->
                                            <!--{/loop}-->
                                            <!--{/loop}-->
                                            <!--{/if}-->
                                        </span></td>
                                        <td><label class="label label-info">
                                            <!--{eval echo date('Y/m/d H:i:s',$value['created_at'])}-->
                                        </label></td>
                                        <td>
                                            {if $value['status']==0}
                                            <label class="label label-info">待处理 </label>
                                            {elseif $value['status']==1}
                                            <label class="label label-default">已处理</label>
                                            {else}
                                            <label class="label label-default">无效信息</label>
                                            {/if}
                                        </td>
                                        <td>
                                            <div class="btn-group btn-group-sm">
                                                <button type="button" class="btn btn-danger myStatusReject" data-muid="$value['uid']" data-action="$value['action']" data-type="$value['type']" data-id="$value['id']" data-ruid="$value['ruid']">无效信息</button>
                                                <button type="button" class="btn btn-info myStatusDeal" data-muid="$value['uid']" data-action="$value['action']" data-type="$value['type']" data-id="$value['id']" data-ruid="$value['ruid']">已处理</button>
                                            </div>
                                        </td>

                                    </tr>
                                    <!--{/loop}-->
                                    </tbody>
                                </table>
                                <!--{if $pageUrl}-->
                                <ul class="pager">
                                    <li>
                                        <a href="{$pageUrl['prev']}"> <i class="fa fa-angle-double-left"></i>上一页</a>
                                    </li>
                                    <li>
                                        <a href="{$pageUrl['first']}"> <i class="fa"></i>第一页</a>
                                    </li>
                                    <li>
                                        <a href="{$pageUrl['next']}">下一页 <i class="fa fa-angle-double-right"></i> </a>
                                    </li>
                                </ul>
                                <!--{/if}-->
                            </div>
                        </div>
                        <div class="row" style="margin-top: 15px">
                            <div class="form-group pageCon"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <!-- Page Content Ends -->
    <!-- ================== -->

    <div id="con-close-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">

    </div><!-- /.modal -->


    <!-- Footer Start -->
    <!--{template admin_v2/footer}-->
    <!-- Footer Ends -->



</section>
<!-- Main Content Ends -->

<!-- js placed at the end of the document so the pages load faster -->
<script src="<!--{eval echo register_static('js/jquery.js');}-->"></script>
<script src="<!--{eval echo register_static('js/bootstrap.min.js');}-->"></script>
<script src="<!--{eval echo register_static('js/pace.min.js');}-->"></script>
<script src="<!--{eval echo register_static('js/wow.min.js');}-->"></script>
<script src="<!--{eval echo register_static('js/jquery.nicescroll.js');}-->" type="text/javascript"></script>

<script src="<!--{eval echo register_static('js/jquery.app.js');}-->"></script>
<script src="<!--{eval echo register_static('layer/layer.js');}-->"></script>
<script src="<!--{eval echo register_static('assets/datatables/jquery.dataTables.min.js');}-->"></script>
<script src="<!--{eval echo register_static('assets/datatables/dataTables.bootstrap.js');}-->"></script>
<script src="<!--{eval echo register_static('assets/sweet-alert/sweet-alert.min.js');}-->"></script>
<script src="<!--{eval echo register_static('assets/sweet-alert/sweet-alert.init.js');}-->"></script>

<!-- Modal-Effect -->
<script src="<!--{eval echo register_static('assets/modal-effect/js/classie.js');}-->"></script>
<script src="<!--{eval echo register_static('assets/modal-effect/js/modalEffects.js');}-->"></script>

<script type="text/javascript">
    $(document).ready(function() {

        $(document).off('mouseenter', '.showImg').on('mouseenter', '.showImg', function () {
            layer.tips('<img style="max-width: 383px; max-height: 383px" src="'+$(this).attr('src')+'" />', $(this), {
                tips: [2, '#fff']
            });
        });

        $(document).off('mouseleave', '.showImg').on('mouseleave', '.showImg', function () {
            layer.closeAll();
        });

        //无效信息
        $(document).off('click', '.myStatusReject').on('click', '.myStatusReject', function () {
            var id = $(this).data('id');
            var type = $(this).data('type');
            var action = $(this).data('action');
            var muid = $(this).data('muid');
            var ruid = $(this).data('ruid');
            if (!id)return;
            layer.confirm('确定将 '+id+' 设为无效信息？', {icon: 3, title:'提示'}, function(i){
                var index = layer.load();
                $.post(
                        '/admin.php?ac=member&op=reportedit&id='+id+'&muid='+muid+'&ruid='+ruid+'&type='+type,
                        {status:2,action:action},
                        function (r) {
                            layer.close(index);
                            if(r == 1){
                                layer.closeAll();
                                layer.msg('已设置为 无效信息', {icon: 1});
                            }else{
                                layer.msg('操作异常', {icon: 0});
                            }
                            refresh();
                        }
                );
            });
        });
//        已处理
        $(document).off('click', '.myStatusDeal').on('click', '.myStatusDeal', function () {
            var id = $(this).data('id');
            var muid = $(this).data('muid');
            var type = $(this).data('type');
            var action = $(this).data('action');
            var ruid = $(this).data('ruid');
            if (!id)return;
            layer.confirm('确定将 '+id+' 设为已处理？', {icon: 3, title:'提示'}, function(i){
                var index = layer.load();
                $.post(
                        '/admin.php?ac=member&op=reportedit&id='+id+'&muid='+muid+'&ruid='+ruid+'&type='+type,
                        {status:1,action:action},
                        function (r) {
                            layer.close(index);
                            if(r == 1){
                                layer.closeAll();
                                layer.msg('已设置为 已处理', {icon: 1});
                            }else{
                                layer.msg('操作异常', {icon: 0});
                            }
                            refresh();
                        }
                );
            });
        });

        // 刷新当前页面
        function refresh(){
            setInterval(window.location.reload(),5000);
        }
    } );
</script>
</body>
</html>
